package com.earth.c.render;

import java.io.Serializable;


public class Result implements Serializable {

	private static final long serialVersionUID = -1126196958137979710L;

	/**
	 * 状态：成功success、失败error
	 */
	private int code;

	/**
	 * 描述
	 */
	private String message = "";

	/**
	 * 成功时返回的数据信息
	 */
	private Object data;
	
	public Result() {
		super();
	}
	
	public Result(int code, String message) {
		super();
		this.code = code;
		this.message = message;
	}

	public Result(int code, String message, Object data) {
		super();
		this.code = code;
		this.message = message;
		this.data = data;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}
}
